(window.webpackJsonp_name_=window.webpackJsonp_name_||[]).push([[0],Array(213).concat([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},,,,,,,,,,,,function(e,t,n){var r=n(235).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}return a.default=e,n&&n.set(e,a),a},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(462),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Math.floor(e%60),r=Math.floor(e/60%60),o=Math.floor(e/3600),a=Math.floor(t/60%60),i=Math.floor(t/3600);(c(e)||e===1/0)&&(o="-",r="-",n="-");return o=o>0||i>0?"".concat(o,":"):"",r="".concat((o||a>=10)&&r<10?"0".concat(r):r,":"),n=n<10?"0".concat(n):n,o+r+n},t.isVideoChild=function(e){if(e.props&&e.props.isVideoChild)return!0;return"source"===e.type||"track"===e.type},t.mergeAndSortChildren=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=u.default.Children.toArray(t),a=(n.order,(0,i.default)(n,["order"]));return o.filter((function(e){return!e.props.disabled})).concat(e.filter((function(e){return!d(o,(function(t){return f(t,e)}))}))).map((function(t){var n=d(e,(function(e){return f(e,t)})),r=n?n.props:{},o=s(s(s({},a),r),t.props);return u.default.cloneElement(t,o,t.props.children)})).sort((function(e,t){return(e.props.order||r)-(t.props.order||r)}))},t.deprecatedWarning=function(e,t){console.warn("WARNING: ".concat(e," will be deprecated soon! Please use ").concat(t," instead."))},t.throttle=function(e,t){var n=arguments,r=!1;return function(){r||(e.apply(void 0,(0,o.default)(n)),r=!0,setTimeout((function(){r=!1}),t))}},t.mediaProperties=void 0;var o=r(n(223)),a=r(n(220)),i=r(n(338)),u=r(n(0));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var i=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var u=o;u<=a;u+=r)-1===i.indexOf(u)&&i.push(u);return i}(0,a,i,u,f,d).map((function(e){var a,i=Math.abs(e-f)/y*100+"%",u=!l&&e===c||l&&e<=c&&e>=s,d=n?o()({},p,E()({},r?"top":"bottom",i)):o()({},p,E()({},r?"right":"left",i));u&&(d=o()({},d,v));var m=D()((a={},E()(a,t+"-dot",!0),E()(a,t+"-dot-active",u),E()(a,t+"-dot-reverse",r),a));return h.a.createElement("span",{className:m,style:d,key:e})}));return h.a.createElement("div",{className:t+"-step"},m)};A.propTypes={prefixCls:y.a.string,activeDotStyle:y.a.object,dotStyle:y.a.object,min:y.a.number,max:y.a.number,upperBound:y.a.number,lowerBound:y.a.number,included:y.a.bool,dots:y.a.bool,step:y.a.number,marks:y.a.object,vertical:y.a.bool,reverse:y.a.bool};var R=A,j=function(e){var t=e.className,n=e.vertical,r=e.reverse,a=e.marks,i=e.included,u=e.upperBound,l=e.lowerBound,s=e.max,c=e.min,d=e.onClickLabel,f=Object.keys(a),p=s-c,v=f.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var s,f=a[e],v="object"==typeof f&&!h.a.isValidElement(f),y=v?f.label:f;if(!y&&0!==y)return null;var m=!i&&e===u||i&&e<=u&&e>=l,g=D()((s={},E()(s,t+"-text",!0),E()(s,t+"-text-active",m),s)),b=E()({marginBottom:"-50%"},r?"top":"bottom",(e-c)/p*100+"%"),k=E()({transform:"translateX(-50%)",msTransform:"translateX(-50%)"},r?"right":"left",r?(e-c/4)/p*100+"%":(e-c)/p*100+"%"),P=n?b:k,T=v?o()({},P,f.style):P;return h.a.createElement("span",{className:g,style:T,key:e,onMouseDown:function(t){return d(t,e)},onTouchStart:function(t){return d(t,e)}},y)}));return h.a.createElement("div",{className:t},v)};j.propTypes={className:y.a.string,vertical:y.a.bool,reverse:y.a.bool,marks:y.a.object,included:y.a.bool,upperBound:y.a.number,lowerBound:y.a.number,max:y.a.number,min:y.a.number,onClickLabel:y.a.func};var L=j,I=function(e){function t(){var e,n,r,o;i()(this,t);for(var a=arguments.length,u=Array(a),l=0;l=V.F1&&t<=V.F12)return!1;switch(t){case V.ALT:case V.CAPS_LOCK:case V.CONTEXT_MENU:case V.CTRL:case V.DOWN:case V.END:case V.ESC:case V.HOME:case V.INSERT:case V.LEFT:case V.MAC_FF_META:case V.META:case V.NUMLOCK:case V.NUM_CENTER:case V.PAGE_DOWN:case V.PAGE_UP:case V.PAUSE:case V.PRINT_SCREEN:case V.RIGHT:case V.SHIFT:case V.UP:case V.WIN_KEY:case V.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=V.ZERO&&e<=V.NINE)return!0;if(e>=V.NUM_ZERO&&e<=V.NUM_MULTIPLY)return!0;if(e>=V.A&&e<=V.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case V.SPACE:case V.QUESTION_MARK:case V.NUM_PLUS:case V.NUM_MINUS:case V.NUM_PERIOD:case V.NUM_DIVISION:case V.SEMICOLON:case V.DASH:case V.EQUALS:case V.COMMA:case V.PERIOD:case V.SLASH:case V.APOSTROPHE:case V.SINGLE_QUOTE:case V.OPEN_SQUARE_BRACKET:case V.BACKSLASH:case V.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},H=V;function W(e,t){try{return Object.keys(t).some((function(n){return e.target===Object(M.findDOMNode)(t[n])}))}catch(e){return!1}}function K(e,t){var n=t.min,r=t.max;return er}function G(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function z(e,t){var n=t.marks,r=t.step,o=t.min,a=t.max,i=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.floor((a-o)/r),l=Math.min((e-o)/r,u),s=Math.round(l)*r+o;i.push(s)}var c=i.map((function(t){return Math.abs(e-t)}));return i[c.indexOf(Math.min.apply(Math,B()(c)))]}function Y(e,t){return e?t.clientY:t.pageX}function X(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function q(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function Z(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function Q(e,t){var n=t.step,r=isFinite(z(e,t))?z(e,t):0;return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function J(e){e.stopPropagation(),e.preventDefault()}function $(e,t,n){var r="increase";switch(e.keyCode){case H.UP:r=t&&n?"decrease":"increase";break;case H.RIGHT:r=!t&&n?"decrease":"increase";break;case H.DOWN:r=t&&n?"increase":"decrease";break;case H.LEFT:r=!t&&n?"increase":"decrease";break;case H.END:return function(e,t){return t.max};case H.HOME:return function(e,t){return t.min};case H.PAGE_UP:return function(e,t){return e+2*t.step};case H.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),a=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[a]?n.marks[a]:t}(r,e,t)}}function ee(){}function te(e){var t,n;return n=t=function(e){function t(e){i()(this,t);var n=c()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onMouseDown=function(e){if(0===e.button){var t=n.props.vertical,r=Y(t,e);if(W(e,n.handlesRefs)){var o=q(t,e.target);n.dragOffset=r-o,r=o}else n.dragOffset=0;n.removeDocumentEvents(),n.onStart(r),n.addDocumentMouseEvents()}},n.onTouchStart=function(e){if(!G(e)){var t=n.props.vertical,r=X(t,e);if(W(e,n.handlesRefs)){var o=q(t,e.target);n.dragOffset=r-o,r=o}else n.dragOffset=0;n.onStart(r),n.addDocumentTouchEvents(),J(e)}},n.onFocus=function(e){var t=n.props,r=t.onFocus,o=t.vertical;if(W(e,n.handlesRefs)){var a=q(o,e.target);n.dragOffset=0,n.onStart(a),J(e),r&&r(e)}},n.onBlur=function(e){var t=n.props.onBlur;n.onEnd(),t&&t(e)},n.onMouseUp=function(){n.handlesRefs[n.prevMovedHandleIndex]&&n.handlesRefs[n.prevMovedHandleIndex].clickFocus()},n.onMouseMove=function(e){if(n.sliderRef){var t=Y(n.props.vertical,e);n.onMove(e,t-n.dragOffset)}else n.onEnd()},n.onTouchMove=function(e){if(!G(e)&&n.sliderRef){var t=X(n.props.vertical,e);n.onMove(e,t-n.dragOffset)}else n.onEnd()},n.onKeyDown=function(e){n.sliderRef&&W(e,n.handlesRefs)&&n.onKeyboard(e)},n.onClickMarkLabel=function(e,t){e.stopPropagation(),n.onChange({value:t}),n.setState({value:t},(function(){return n.onEnd(!0)}))},n.saveSlider=function(e){n.sliderRef=e};var r=e.step,o=e.max,a=e.min,u=!isFinite(o-a)||(o-a)%r==0;return g()(!r||Math.floor(r)!==r||u,"Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)",o-a,r),n.handlesRefs={},n}return f()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){O()(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this)&&O()(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=_(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=_(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=_(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=_(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){this.props.disabled||this.handlesRefs[0].focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,a=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-a)*(o-r)+r:a*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min;return 100*((e-n)/(t.max-n))}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,n=this.props,r=n.prefixCls,a=n.className,i=n.marks,u=n.dots,l=n.step,s=n.included,c=n.disabled,d=n.vertical,f=n.reverse,p=n.min,v=n.max,y=n.children,m=n.maximumTrackStyle,g=n.style,b=n.railStyle,k=n.dotStyle,P=n.activeDotStyle,T=O()(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this),C=T.tracks,w=T.handles,S=D()(r,(e={},E()(e,r+"-with-marks",Object.keys(i).length),E()(e,r+"-disabled",c),E()(e,r+"-vertical",d),E()(e,a,a),e));return h.a.createElement("div",{ref:this.saveSlider,className:S,onTouchStart:c?ee:this.onTouchStart,onMouseDown:c?ee:this.onMouseDown,onMouseUp:c?ee:this.onMouseUp,onKeyDown:c?ee:this.onKeyDown,onFocus:c?ee:this.onFocus,onBlur:c?ee:this.onBlur,style:g},h.a.createElement("div",{className:r+"-rail",style:o()({},m,b)}),C,h.a.createElement(R,{prefixCls:r,vertical:d,reverse:f,marks:i,dots:u,step:l,included:s,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:v,min:p,dotStyle:k,activeDotStyle:P}),w,h.a.createElement(L,{className:r+"-mark",onClickLabel:c?ee:this.onClickMarkLabel,vertical:d,marks:i,included:s,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:v,min:p,reverse:f}),y)}}]),t}(e),t.displayName="ComponentEnhancer("+e.displayName+")",t.propTypes=o()({},e.propTypes,{min:y.a.number,max:y.a.number,step:y.a.number,marks:y.a.object,included:y.a.bool,className:y.a.string,prefixCls:y.a.string,disabled:y.a.bool,children:y.a.any,onBeforeChange:y.a.func,onChange:y.a.func,onAfterChange:y.a.func,handle:y.a.func,dots:y.a.bool,vertical:y.a.bool,style:y.a.object,reverse:y.a.bool,minimumTrackStyle:y.a.object,maximumTrackStyle:y.a.object,handleStyle:y.a.oneOfType([y.a.object,y.a.arrayOf(y.a.object)]),trackStyle:y.a.oneOfType([y.a.object,y.a.arrayOf(y.a.object)]),railStyle:y.a.object,dotStyle:y.a.object,activeDotStyle:y.a.object,autoFocus:y.a.bool,onFocus:y.a.func,onBlur:y.a.func}),t.defaultProps=o()({},e.defaultProps,{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=T()(e,["index"]);return delete n.dragging,null===n.value?null:h.a.createElement(F,o()({},n,{key:t}))},onBeforeChange:ee,onChange:ee,onAfterChange:ee,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),n}var ne=function(e){function t(e){i()(this,t);var n=c()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onEnd=function(e){var t=n.state.dragging;n.removeDocumentEvents(),(t||e)&&n.props.onAfterChange(n.getValue()),n.setState({dragging:!1})};var r=void 0!==e.defaultValue?e.defaultValue:e.min,o=void 0!==e.value?e.value:r;return n.state={value:n.trimAlignValue(o),dragging:!1},g()(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),g()(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),n}return f()(t,e),l()(t,[{key:"componentDidUpdate",value:function(e,t){if("value"in this.props||"min"in this.props||"max"in this.props){var n=this.props,r=n.value,o=n.onChange,a=void 0!==r?r:t.value,i=this.trimAlignValue(a,this.props);i!==t.value&&(this.setState({value:i}),K(a,this.props)&&o(i))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?o()({},e,{value:this.props.max}):e;n&&this.setState(r);var a=r.value;t.onChange(a)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){J(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=$(e,t.vertical,n);if(r){J(e);var o=this.state.value,a=r(o,this.props),i=this.trimAlignValue(a);if(i===o)return;this.onChange({value:i}),this.props.onAfterChange(i),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){return this.props.min}},{key:"getUpperBound",value:function(){return this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=o()({},this.props,t),r=Z(e,n);return Q(r,n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,a=t.included,i=t.disabled,u=t.minimumTrackStyle,l=t.trackStyle,s=t.handleStyle,c=t.tabIndex,d=t.min,f=t.max,p=t.reverse,v=t.handle,y=this.state,m=y.value,g=y.dragging,b=this.calcOffset(m),E=v({className:n+"-handle",prefixCls:n,vertical:r,offset:b,value:m,dragging:g,disabled:i,min:d,max:f,reverse:p,index:0,tabIndex:c,style:s[0]||s,ref:function(t){return e.saveHandle(0,t)}}),P=l[0]||l;return{tracks:h.a.createElement(k,{className:n+"-track",vertical:r,included:a,offset:0,reverse:p,length:b,style:o()({},u,P)}),handles:E}}}]),t}(h.a.Component);ne.propTypes={defaultValue:y.a.number,value:y.a.number,disabled:y.a.bool,autoFocus:y.a.bool,tabIndex:y.a.number,reverse:y.a.bool,min:y.a.number,max:y.a.number};var re=te(ne),oe=n(358),ae=n(95),ie=n.n(ae),ue=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,a=o.allowCross,i=o.pushable,u=Number(i),l=Z(t,o),s=l;return a||null==n||void 0===r||(n>0&&l<=r[n-1]+u&&(s=r[n-1]+u),n=r[n+1]-u&&(s=r[n+1]-u)),Q(s,o)},le=function(e){function t(e){i()(this,t);var n=c()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onEnd=function(e){var t=n.state.handle;n.removeDocumentEvents(),(null!==t||e)&&n.props.onAfterChange(n.getValue()),n.setState({handle:null})};var r=e.count,o=e.min,a=e.max,u=Array.apply(void 0,B()(Array(r+1))).map((function(){return o})),l="defaultValue"in e?e.defaultValue:u,s=(void 0!==e.value?e.value:l).map((function(t,n){return ue({value:t,handle:n,props:e})})),d=s[0]===a?0:s.length-1;return n.state={handle:null,recent:d,bounds:s},n}return f()(t,e),l()(t,[{key:"componentDidUpdate",value:function(e,t){var n=this;if(("value"in this.props||"min"in this.props||"max"in this.props)&&(this.props.min!==e.min||this.props.max!==e.max||!ie()(this.props.value,e.value))){var r=this.props,o=r.onChange,a=r.value||t.bounds;if(a.some((function(e){return K(e,n.props)})))o(a.map((function(e){return Z(e,n.props)})))}}},{key:"onChange",value:function(e){var t=this.props;if(!("value"in t))this.setState(e);else{var n={};["handle","recent"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),Object.keys(n).length&&this.setState(n)}var r=o()({},this.state,e).bounds;t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var a=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,a),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var i=[].concat(B()(n.bounds));i[this.prevMovedHandleIndex]=o,this.onChange({bounds:i})}}},{key:"onMove",value:function(e,t){J(e);var n=this.state,r=this.calcValueByPos(t);r!==n.bounds[n.handle]&&this.moveTo(r)}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=$(e,t.vertical,n);if(r){J(e);var o=this.state,a=this.props,i=o.bounds,u=o.handle,l=i[null===u?o.recent:u],s=r(l,a),c=ue({value:s,handle:u,bounds:o.bounds,props:a});if(c===l)return;this.moveTo(c,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r=t[r]&&(n=r);return Math.abs(t[n+1]-e)=r.length||o<0)return!1;var a=t+n,i=r[o],u=this.props.pushable,l=n*(e[a]-i);return!!this.pushHandle(e,a,n,u-l)&&(e[t]=i,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return ue({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,r=t.bounds,o=this.props,a=o.prefixCls,i=o.vertical,u=o.included,l=o.disabled,s=o.min,c=o.max,d=o.reverse,f=o.handle,p=o.trackStyle,v=o.handleStyle,y=o.tabIndex,m=r.map((function(t){return e.calcOffset(t)})),g=a+"-handle",b=r.map((function(t,r){var o,u=y[r]||0;return(l||null===y[r])&&(u=null),f({className:D()((o={},E()(o,g,!0),E()(o,g+"-"+(r+1),!0),o)),prefixCls:a,vertical:i,offset:m[r],value:t,dragging:n===r,index:r,tabIndex:u,min:s,max:c,reverse:d,disabled:l,style:v[r],ref:function(t){return e.saveHandle(r,t)}})}));return{tracks:r.slice(0,-1).map((function(e,t){var n,r=t+1,o=D()((n={},E()(n,a+"-track",!0),E()(n,a+"-track-"+r,!0),n));return h.a.createElement(k,{className:o,vertical:i,reverse:d,included:u,offset:m[r-1],length:m[r]-m[r-1],style:p[t],key:r})})),handles:b}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if("value"in e||"min"in e||"max"in e){var n=(e.value||t.bounds).map((function(n,r){return ue({value:n,handle:r,bounds:t.bounds,props:e})}));return n.length===t.bounds.length&&n.every((function(e,n){return e===t.bounds[n]}))?null:o()({},t,{bounds:n})}return null}}]),t}(h.a.Component);le.displayName="Range",le.propTypes={autoFocus:y.a.bool,defaultValue:y.a.arrayOf(y.a.number),value:y.a.arrayOf(y.a.number),count:y.a.number,pushable:y.a.oneOfType([y.a.bool,y.a.number]),allowCross:y.a.bool,disabled:y.a.bool,reverse:y.a.bool,tabIndex:y.a.arrayOf(y.a.number),min:y.a.number,max:y.a.number},le.defaultProps={count:1,allowCross:!0,pushable:!1,tabIndex:[]},Object(oe.polyfill)(le);var se=te(le);function ce(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function bt(e){var t,n,r;if(ht.isWindow(e)||9===e.nodeType){var o=ht.getWindow(e);t={left:ht.getWindowScrollLeft(o),top:ht.getWindowScrollTop(o)},n=ht.viewportWidth(o),r=ht.viewportHeight(o)}else t=ht.offset(e),n=ht.outerWidth(e),r=ht.outerHeight(e);return t.width=n,t.height=r,t}function Et(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,u=e.top;return"c"===n?u+=a/2:"b"===n&&(u+=a),"c"===r?i+=o/2:"r"===r&&(i+=o),{left:i,top:u}}function kt(e,t,n,r,o){var a=Et(t,n[1]),i=Et(e,n[0]),u=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function Pt(e,t,n){return e.leftn.right}function Tt(e,t,n){return e.topn.bottom}function Ct(e,t,n){var r=[];return ht.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ot(e,t){return e[t]=-e[t],e}function wt(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function St(e,t){e[0]=wt(e[0],t.width),e[1]=wt(e[1],t.height)}function Mt(e,t,n,r){var o=n.points,a=n.offset||[0,0],i=n.targetOffset||[0,0],u=n.overflow,l=n.source||e;a=[].concat(a),i=[].concat(i);var s={},c=0,d=gt(l,!(!(u=u||{})||!u.alwaysByViewport)),f=bt(l);St(a,f),St(i,t);var p=kt(f,t,o,a,i),h=ht.merge(f,p);if(d&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Pt(p,f,d)){var v=Ct(o,/[lr]/gi,{l:"r",r:"l"}),y=Ot(a,0),m=Ot(i,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),ht.mix(o,a)}(p,f,d,s))}return h.width!==f.width&&ht.css(l,"width",ht.width(l)+h.width-f.width),h.height!==f.height&&ht.css(l,"height",ht.height(l)+h.height-f.height),ht.offset(l,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:a,targetOffset:i,overflow:s}}function Nt(e,t,n){var r=n.target||t;return Mt(e,bt(r),n,!function(e,t){var n=gt(e,t),r=bt(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport))}function _t(e,t,n){var r,o,a=ht.getDocument(e),i=a.defaultView||a.parentWindow,u=ht.getWindowScrollLeft(i),l=ht.getWindowScrollTop(i),s=ht.viewportWidth(i),c=ht.viewportHeight(i),d={left:r="pageX"in t?t.pageX:u+t.clientX,top:o="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},f=r>=0&&r<=u+s&&o>=0&&o<=l+c,p=[n.points[0],"cc"];return Mt(e,d,xe(xe({},n),{},{points:p}),f)}Nt.__getOffsetParent=yt,Nt.__getVisibleRectForElement=gt;function xt(e){return e&&"object"==typeof e&&e.window===e}function Dt(e,t){var n=Math.floor(e),r=Math.floor(t);return Math.abs(n-r)<=1}function At(e,t){e!==document.activeElement&&ce(t,e)&&e.focus()}function Rt(e){return"function"==typeof e&&e?e():null}function jt(e){return"object"==typeof e&&e?e:null}var Lt=function(e){function t(){var e,n,r,o;i()(this,t);for(var a=arguments.length,u=Array(a),l=0;l children");r=e}})),r}var Ht=n(352),Wt=n.n(Ht),Kt={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},Gt={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},zt=[],Yt=[];function Xt(e,t,n){e.addEventListener(t,n,!1)}function qt(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var a in o)if(a in e){n.push(o[a]);break}}}"AnimationEvent"in window||(delete Kt.animationstart.animation,delete Gt.animationend.animation),"TransitionEvent"in window||(delete Kt.transitionstart.transition,delete Gt.transitionend.transition),t(Kt,zt),t(Gt,Yt)}();var Zt={startEvents:zt,addStartEventListener:function(e,t){0!==zt.length?zt.forEach((function(n){Xt(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==zt.length&&zt.forEach((function(n){qt(e,n,t)}))},endEvents:Yt,addEndEventListener:function(e,t){0!==Yt.length?Yt.forEach((function(n){Xt(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==Yt.length&&Yt.forEach((function(n){qt(e,n,t)}))}},Qt=n(515),Jt=n.n(Qt),$t=0!==Zt.endEvents.length,en=["Webkit","Moz","O","ms"],tn=["-webkit-","-moz-","-o-","ms-",""];function nn(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o children");return h.a.createElement(dn,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var a=t.component;if(a){var i=t;return"string"==typeof a&&(i=o()({className:t.className,style:t.style},t.componentProps)),h.a.createElement(a,i,r)}return r[0]||null}}]),t}(h.a.Component);vn.isAnimate=!0,vn.propTypes={className:y.a.string,style:y.a.object,component:y.a.any,componentProps:y.a.object,animation:y.a.object,transitionName:y.a.oneOfType([y.a.string,y.a.object]),transitionEnter:y.a.bool,transitionAppear:y.a.bool,exclusive:y.a.bool,transitionLeave:y.a.bool,onEnd:y.a.func,onEnter:y.a.func,onLeave:y.a.func,onAppear:y.a.func,showProp:y.a.string,children:y.a.node},vn.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:hn,onEnter:hn,onLeave:hn,onAppear:hn};var yn=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=Ut(pn(r));e.isValidChildByKey(o,t)?"appear"===n?ln.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):ln.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,a,i,u=Ut(pn(n));if(e.isValidChildByKey(u,t))e.performEnter(t);else{var l=function(){ln.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=u,a=n.showProp,(i=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||a&&e.props[a]!==n.props[a])&&(i=!1)})),i?l():e.setState({children:u},l)}}}},mn=Ft(vn),gn=function(e){function t(){return i()(this,t),c()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.shouldComponentUpdate=function(e){return e.hiddenClassName||e.visible},t.prototype.render=function(){var e=this.props,t=e.hiddenClassName,n=e.visible,r=T()(e,["hiddenClassName","visible"]);return t||h.a.Children.count(r.children)>1?(!n&&t&&(r.className+=" "+t),h.a.createElement("div",r)):h.a.Children.only(r.children)},t}(p.Component);gn.propTypes={children:y.a.any,className:y.a.string,visible:y.a.bool,hiddenClassName:y.a.string};var bn=gn,En=function(e){function t(){return i()(this,t),c()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),h.a.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseDown:e.onMouseDown,onTouchStart:e.onTouchStart,style:e.style},h.a.createElement(bn,{className:e.prefixCls+"-content",visible:e.visible},e.children))},t}(p.Component);En.propTypes={hiddenClassName:y.a.string,className:y.a.string,prefixCls:y.a.string,onMouseEnter:y.a.func,onMouseLeave:y.a.func,onMouseDown:y.a.func,onTouchStart:y.a.func,children:y.a.any};var kn=En,Pn=function(e){function t(n){i()(this,t);var r=c()(this,e.call(this,n));return Tn.call(r),r.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},r.savePopupRef=Ne.bind(r,"popupInstance"),r.saveAlignRef=Ne.bind(r,"alignInstance"),r}return f()(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},t.prototype.componentDidUpdate=function(){this.setStretchSize()},t.prototype.getPopupDomNode=function(){return N.a.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+" "+this.props.className+" "+e},t.prototype.getPopupElement=function(){var e=this,t=this.savePopupRef,n=this.state,r=n.stretchChecked,a=n.targetHeight,i=n.targetWidth,u=this.props,l=u.align,s=u.visible,c=u.prefixCls,d=u.style,f=u.getClassNameFromAlign,p=u.destroyPopupOnHide,v=u.stretch,y=u.children,m=u.onMouseEnter,g=u.onMouseLeave,b=u.onMouseDown,E=u.onTouchStart,k=this.getClassName(this.currentAlignClassName||f(l)),P=c+"-hidden";s||(this.currentAlignClassName=null);var T={};v&&(-1!==v.indexOf("height")?T.height=a:-1!==v.indexOf("minHeight")&&(T.minHeight=a),-1!==v.indexOf("width")?T.width=i:-1!==v.indexOf("minWidth")&&(T.minWidth=i),r||(T.visibility="hidden",setTimeout((function(){e.alignInstance&&e.alignInstance.forceAlign()}),0)));var C={className:k,prefixCls:c,ref:t,onMouseEnter:m,onMouseLeave:g,onMouseDown:b,onTouchStart:E,style:o()({},T,d,this.getZIndexStyle())};return p?h.a.createElement(mn,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},s?h.a.createElement(It,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:l,onAlign:this.onAlign},h.a.createElement(kn,o()({visible:!0},C),y)):null):h.a.createElement(mn,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},h.a.createElement(It,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:s,childrenProps:{visible:"xVisible"},disabled:!s,align:l,onAlign:this.onAlign},h.a.createElement(kn,o()({hiddenClassName:P},C),y)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=h.a.createElement(bn,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=h.a.createElement(mn,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},t.prototype.render=function(){return h.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())},t}(p.Component);Pn.propTypes={visible:y.a.bool,style:y.a.object,getClassNameFromAlign:y.a.func,onAlign:y.a.func,getRootDomNode:y.a.func,align:y.a.any,destroyPopupOnHide:y.a.bool,className:y.a.string,prefixCls:y.a.string,onMouseEnter:y.a.func,onMouseLeave:y.a.func,onMouseDown:y.a.func,onTouchStart:y.a.func,stretch:y.a.string,children:y.a.node,point:y.a.shape({pageX:y.a.number,pageY:y.a.number})};var Tn=function(){var e=this;this.onAlign=function(t,n){var r=e.props,o=r.getClassNameFromAlign(n);e.currentAlignClassName!==o&&(e.currentAlignClassName=o,t.className=e.getClassName(o)),r.onAlign(t,n)},this.setStretchSize=function(){var t=e.props,n=t.stretch,r=t.getRootDomNode,o=t.visible,a=e.state,i=a.stretchChecked,u=a.targetHeight,l=a.targetWidth;if(n&&o){var s=r();if(s){var c=s.offsetHeight,d=s.offsetWidth;u===c&&l===d&&i||e.setState({stretchChecked:!0,targetHeight:c,targetWidth:d})}}else i&&e.setState({stretchChecked:!1})},this.getTargetElement=function(){return e.props.getRootDomNode()},this.getAlignTarget=function(){var t=e.props.point;return t||e.getTargetElement}},Cn=Pn;function On(){}var wn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],Sn=!!M.createPortal,Mn={rcTrigger:y.a.shape({onPopupMouseDown:y.a.func})},Nn=function(e){function t(n){i()(this,t);var r=c()(this,e.call(this,n));_n.call(r);var o=void 0;return o="popupVisible"in n?!!n.popupVisible:!!n.defaultPopupVisible,r.state={prevPopupVisible:o,popupVisible:o},wn.forEach((function(e){r["fire"+e]=function(t){r.fireEvents(e,t)}})),r}return f()(t,e),t.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},t.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;if(Sn||this.renderComponent(null,(function(){t.popupVisible!==r.popupVisible&&n.afterPopupVisibleChange(r.popupVisible)})),r.popupVisible){var o=void 0;return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(o=n.getDocument(),this.clickOutsideHandler=_(o,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(o=o||n.getDocument(),this.touchOutsideHandler=_(o,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(o=o||n.getDocument(),this.contextMenuOutsideHandler1=_(o,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=_(window,"blur",this.onContextMenuClose)))}this.clearOutsideHandler()},t.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},t.getDerivedStateFromProps=function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r},t.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},t.prototype.getPopupAlign=function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return o()({},r,n)}(r,t,n):n},t.prototype.setPopupVisible=function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&this.setPoint(t)},t.prototype.delaySetPopupVisible=function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)},t.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},t.prototype.clearOutsideHandler=function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},t.prototype.createTwoChains=function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire"+e]:t[e]||n[e]},t.prototype.isClickToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isContextMenuToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")},t.prototype.isClickToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isMouseEnterToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")},t.prototype.isMouseLeaveToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")},t.prototype.isFocusToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},t.prototype.isBlurToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},t.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},t.prototype.fireEvents=function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)},t.prototype.close=function(){this.setPopupVisible(!1)},t.prototype.render=function(){var e=this,t=this.state.popupVisible,n=this.props,r=n.children,o=n.forceRender,a=n.alignPoint,i=n.className,u=h.a.Children.only(r),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,a&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var s=D()(u&&u.props&&u.props.className,i);s&&(l.className=s);var c=h.a.cloneElement(u,l);if(!Sn)return h.a.createElement(ge,{parent:this,visible:t,autoMount:!1,forceRender:o,getComponent:this.getComponent,getContainer:this.getContainer},(function(t){var n=t.renderComponent;return e.renderComponent=n,c}));var d=void 0;return(t||this._component||o)&&(d=h.a.createElement(Se,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[c,d]},t}(h.a.Component);Nn.propTypes={children:y.a.any,action:y.a.oneOfType([y.a.string,y.a.arrayOf(y.a.string)]),showAction:y.a.any,hideAction:y.a.any,getPopupClassNameFromAlign:y.a.any,onPopupVisibleChange:y.a.func,afterPopupVisibleChange:y.a.func,popup:y.a.oneOfType([y.a.node,y.a.func]).isRequired,popupStyle:y.a.object,prefixCls:y.a.string,popupClassName:y.a.string,className:y.a.string,popupPlacement:y.a.string,builtinPlacements:y.a.object,popupTransitionName:y.a.oneOfType([y.a.string,y.a.object]),popupAnimation:y.a.any,mouseEnterDelay:y.a.number,mouseLeaveDelay:y.a.number,zIndex:y.a.number,focusDelay:y.a.number,blurDelay:y.a.number,getPopupContainer:y.a.func,getDocument:y.a.func,forceRender:y.a.bool,destroyPopupOnHide:y.a.bool,mask:y.a.bool,maskClosable:y.a.bool,onPopupAlign:y.a.func,popupAlign:y.a.object,popupVisible:y.a.bool,defaultPopupVisible:y.a.bool,maskTransitionName:y.a.oneOfType([y.a.string,y.a.object]),maskAnimation:y.a.string,stretch:y.a.string,alignPoint:y.a.bool},Nn.contextTypes=Mn,Nn.childContextTypes=Mn,Nn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(){return window.document},onPopupVisibleChange:On,afterPopupVisibleChange:On,onPopupAlign:On,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var _n=function(){var e=this;this.onMouseEnter=function(t){var n=e.props.mouseEnterDelay;e.fireEvents("onMouseEnter",t),e.delaySetPopupVisible(!0,n,n?null:t)},this.onMouseMove=function(t){e.fireEvents("onMouseMove",t),e.setPoint(t)},this.onMouseLeave=function(t){e.fireEvents("onMouseLeave",t),e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){e.clearDelayTimer()},this.onPopupMouseLeave=function(t){t.relatedTarget&&!t.relatedTarget.setTimeout&&e._component&&e._component.getPopupDomNode&&ce(e._component.getPopupDomNode(),t.relatedTarget)||e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onFocus=function(t){e.fireEvents("onFocus",t),e.clearDelayTimer(),e.isFocusToShow()&&(e.focusTime=Date.now(),e.delaySetPopupVisible(!0,e.props.focusDelay))},this.onMouseDown=function(t){e.fireEvents("onMouseDown",t),e.preClickTime=Date.now()},this.onTouchStart=function(t){e.fireEvents("onTouchStart",t),e.preTouchTime=Date.now()},this.onBlur=function(t){e.fireEvents("onBlur",t),e.clearDelayTimer(),e.isBlurToHide()&&e.delaySetPopupVisible(!1,e.props.blurDelay)},this.onContextMenu=function(t){t.preventDefault(),e.fireEvents("onContextMenu",t),e.setPopupVisible(!0,t)},this.onContextMenuClose=function(){e.isContextMenuToShow()&&e.close()},this.onClick=function(t){if(e.fireEvents("onClick",t),e.focusTime){var n=void 0;if(e.preClickTime&&e.preTouchTime?n=Math.min(e.preClickTime,e.preTouchTime):e.preClickTime?n=e.preClickTime:e.preTouchTime&&(n=e.preTouchTime),Math.abs(n-e.focusTime)<20)return;e.focusTime=0}e.preClickTime=0,e.preTouchTime=0,e.isClickToShow()&&(e.isClickToHide()||e.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var r=!e.state.popupVisible;(e.isClickToHide()&&!r||r&&e.isClickToShow())&&e.setPopupVisible(!e.state.popupVisible,t)},this.onPopupMouseDown=function(){var t=e.context.rcTrigger,n=void 0===t?{}:t;e.hasPopupMouseDown=!0,clearTimeout(e.mouseDownTimeout),e.mouseDownTimeout=setTimeout((function(){e.hasPopupMouseDown=!1}),0),n.onPopupMouseDown&&n.onPopupMouseDown.apply(n,arguments)},this.onDocumentClick=function(t){if(!e.props.mask||e.props.maskClosable){var n=t.target;ce(Object(M.findDOMNode)(e),n)||e.hasPopupMouseDown||e.close()}},this.getRootDomNode=function(){return Object(M.findDOMNode)(e)},this.getPopupClassNameFromAlign=function(t){var n=[],r=e.props,o=r.popupPlacement,a=r.builtinPlacements,i=r.prefixCls,u=r.alignPoint,l=r.getPopupClassNameFromAlign;return o&&a&&n.push(function(e,t,n,r){var o=n.points;for(var a in e)if(e.hasOwnProperty(a)&&Me(e[a].points,o,r))return t+"-placement-"+a;return""}(a,i,t,u)),l&&n.push(l(t)),n.join(" ")},this.getComponent=function(){var t=e.props,n=t.prefixCls,r=t.destroyPopupOnHide,a=t.popupClassName,i=t.action,u=t.onPopupAlign,l=t.popupAnimation,s=t.popupTransitionName,c=t.popupStyle,d=t.mask,f=t.maskAnimation,p=t.maskTransitionName,v=t.zIndex,y=t.popup,m=t.stretch,g=t.alignPoint,b=e.state,E=b.popupVisible,k=b.point,P=e.getPopupAlign(),T={};return e.isMouseEnterToShow()&&(T.onMouseEnter=e.onPopupMouseEnter),e.isMouseLeaveToHide()&&(T.onMouseLeave=e.onPopupMouseLeave),T.onMouseDown=e.onPopupMouseDown,T.onTouchStart=e.onPopupMouseDown,h.a.createElement(Cn,o()({prefixCls:n,destroyPopupOnHide:r,visible:E,point:g&&k,className:a,action:i,align:P,onAlign:u,animation:l,getClassNameFromAlign:e.getPopupClassNameFromAlign},T,{stretch:m,getRootDomNode:e.getRootDomNode,style:c,mask:d,zIndex:v,transitionName:s,maskAnimation:f,maskTransitionName:p,ref:e.savePopup}),"function"==typeof y?y():y)},this.getContainer=function(){var t=e.props,n=document.createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",(t.getPopupContainer?t.getPopupContainer(Object(M.findDOMNode)(e)):t.getDocument().body).appendChild(n),n},this.setPoint=function(t){e.props.alignPoint&&t&&e.setState({point:{pageX:t.pageX,pageY:t.pageY}})},this.handlePortalUpdate=function(){e.state.prevPopupVisible!==e.state.popupVisible&&e.props.afterPopupVisibleChange(e.state.popupVisible)},this.savePopup=function(t){e._component=t}};Object(oe.polyfill)(Nn);var xn=Nn,Dn={adjustX:1,adjustY:1},An=[0,0],Rn={left:{points:["cr","cl"],overflow:Dn,offset:[-4,0],targetOffset:An},right:{points:["cl","cr"],overflow:Dn,offset:[4,0],targetOffset:An},top:{points:["bc","tc"],overflow:Dn,offset:[0,-4],targetOffset:An},bottom:{points:["tc","bc"],overflow:Dn,offset:[0,4],targetOffset:An},topLeft:{points:["bl","tl"],overflow:Dn,offset:[0,-4],targetOffset:An},leftTop:{points:["tr","tl"],overflow:Dn,offset:[-4,0],targetOffset:An},topRight:{points:["br","tr"],overflow:Dn,offset:[0,-4],targetOffset:An},rightTop:{points:["tl","tr"],overflow:Dn,offset:[4,0],targetOffset:An},bottomRight:{points:["tr","br"],overflow:Dn,offset:[0,4],targetOffset:An},rightBottom:{points:["bl","br"],overflow:Dn,offset:[4,0],targetOffset:An},bottomLeft:{points:["tl","bl"],overflow:Dn,offset:[0,4],targetOffset:An},leftBottom:{points:["br","bl"],overflow:Dn,offset:[-4,0],targetOffset:An}},jn=function(e){function t(){return i()(this,t),c()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.trigger;e&&e.forcePopupAlign()},t.prototype.render=function(){var e=this.props,t=e.overlay,n=e.prefixCls,r=e.id;return h.a.createElement("div",{className:n+"-inner",id:r,role:"tooltip"},"function"==typeof t?t():t)},t}(h.a.Component);jn.propTypes={prefixCls:y.a.string,overlay:y.a.oneOfType([y.a.node,y.a.func]).isRequired,id:y.a.string,trigger:y.a.any};var Ln=jn,In=function(e){function t(){var n,r,o;i()(this,t);for(var a=arguments.length,u=Array(a),l=0;l=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},,,function(e,t,n){var r=n(287),o=n(312);e.exports=n(288)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(303);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=function(){};e.exports=r},,,,,,,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(346);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},,,,,,,,,,function(e,t,n){"use strict";var r=n(213);Object.defineProperty(t,"__esModule",{value:!0}),t.handleFullscreenChange=function(e){return{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:e}},t.activate=function(e){return{type:"video-react/PLAYER_ACTIVATE",activity:e}},t.userActivate=function(e){return{type:"video-react/USER_ACTIVATE",activity:e}},t.play=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"play",source:""};return this.video.play(),{type:a,operation:e}},t.pause=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"pause",source:""};return this.video.pause(),{type:a,operation:e}},t.togglePlay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"toggle-play",source:""};return this.video.togglePlay(),{type:a,operation:e}},t.seek=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"seek",source:""};return this.video.seek(e),{type:a,operation:t}},t.forward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"forward-".concat(e),source:""};return this.video.forward(e),{type:a,operation:t}},t.replay=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"replay-".concat(e),source:""};return this.video.replay(e),{type:a,operation:t}},t.changeRate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"change-rate",source:""};return this.video.playbackRate=e,{type:a,operation:t}},t.changeVolume=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"change-volume",source:""},n=e;e<0&&(n=0);e>1&&(n=1);return this.video.volume=n,{type:a,operation:t}},t.mute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:e?"muted":"unmuted",source:""};return this.video.muted=e,{type:a,operation:t}},t.toggleFullscreen=function(e){if(o.default.enabled)return o.default.isFullscreen?o.default.exit():o.default.request(this.rootElement),{type:a,operation:{action:"toggle-fullscreen",source:""}};return{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:!e.isFullscreen}},t.USER_ACTIVATE=t.PLAYER_ACTIVATE=t.FULLSCREEN_CHANGE=t.OPERATE=void 0;var o=r(n(382)),a="video-react/OPERATE";t.OPERATE=a;t.FULLSCREEN_CHANGE="video-react/FULLSCREEN_CHANGE";t.PLAYER_ACTIVATE="video-react/PLAYER_ACTIVATE";t.USER_ACTIVATE="video-react/USER_ACTIVATE"},function(e,t,n){"use strict";function r(e){var t;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=document,r=n.body,o=n.documentElement,a=o.clientLeft||r.clientLeft||0,i=window.pageXOffset||r.scrollLeft,u=t.left+i-a,l=o.clientTop||r.clientTop||0,s=window.pageYOffset||r.scrollTop,c=t.top+s-l;return{left:Math.round(u),top:Math.round(c)}}Object.defineProperty(t,"__esModule",{value:!0}),t.findElPosition=r,t.getPointerPosition=function(e,t){var n={},o=r(e),a=e.offsetWidth,i=e.offsetHeight,u=o.top,l=o.left,s=t.pageY,c=t.pageX;t.changedTouches&&(c=t.changedTouches[0].pageX,s=t.changedTouches[0].pageY);return n.y=Math.max(0,Math.min(1,(u-s+i)/i)),n.x=Math.max(0,Math.min(1,(c-l)/a)),n},t.blurNode=function(e){e&&e.blur&&e.blur()},t.focusNode=function(e){e&&e.focus&&e.focus()},t.hasClass=function(e,t){for(var n=e.className.split(" "),r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleLoadStart=function(e){return{type:"video-react/LOAD_START",videoProps:e}},t.handleCanPlay=function(e){return{type:"video-react/CAN_PLAY",videoProps:e}},t.handleWaiting=function(e){return{type:"video-react/WAITING",videoProps:e}},t.handleCanPlayThrough=function(e){return{type:"video-react/CAN_PLAY_THROUGH",videoProps:e}},t.handlePlaying=function(e){return{type:"video-react/PLAYING",videoProps:e}},t.handlePlay=function(e){return{type:r,videoProps:e}},t.handlePause=function(e){return{type:o,videoProps:e}},t.handleEnd=function(e){return{type:a,videoProps:e}},t.handleSeeking=function(e){return{type:"video-react/SEEKING",videoProps:e}},t.handleSeeked=function(e){return{type:"video-react/SEEKED",videoProps:e}},t.handleDurationChange=function(e){return{type:"video-react/DURATION_CHANGE",videoProps:e}},t.handleTimeUpdate=function(e){return{type:"video-react/TIME_UPDATE",videoProps:e}},t.handleVolumeChange=function(e){return{type:"video-react/VOLUME_CHANGE",videoProps:e}},t.handleProgressChange=function(e){return{type:"video-react/PROGRESS_CHANGE",videoProps:e}},t.handleRateChange=function(e){return{type:"video-react/RATE_CHANGE",videoProps:e}},t.handleSuspend=function(e){return{type:"video-react/SUSPEND",videoProps:e}},t.handleAbort=function(e){return{type:i,videoProps:e}},t.handleEmptied=function(e){return{type:"video-react/EMPTIED",videoProps:e}},t.handleStalled=function(e){return{type:"video-react/STALLED",videoProps:e}},t.handleLoadedMetaData=function(e){return{type:"video-react/LOADED_META_DATA",videoProps:e}},t.handleLoadedData=function(e){return{type:"video-react/LOADED_DATA",videoProps:e}},t.handleResize=function(e){return{type:"video-react/RESIZE",videoProps:e}},t.handleError=function(e){return{type:u,videoProps:e}},t.handleSeekingTime=function(e){return{type:"video-react/SEEKING_TIME",time:e}},t.handleEndSeeking=function(e){return{type:"video-react/END_SEEKING",time:e}},t.activateTextTrack=function(e){return{type:"video-react/ACTIVATE_TEXT_TRACK",textTrack:e}},t.ACTIVATE_TEXT_TRACK=t.ERROR=t.RESIZE=t.LOADED_DATA=t.LOADED_META_DATA=t.STALLED=t.EMPTIED=t.ABORT=t.SUSPEND=t.RATE_CHANGE=t.PROGRESS_CHANGE=t.VOLUME_CHANGE=t.TIME_UPDATE=t.DURATION_CHANGE=t.END_SEEKING=t.SEEKING_TIME=t.SEEKED=t.SEEKING=t.END=t.PAUSE=t.PLAY=t.PLAYING=t.CAN_PLAY_THROUGH=t.WAITING=t.CAN_PLAY=t.LOAD_START=void 0;t.LOAD_START="video-react/LOAD_START";t.CAN_PLAY="video-react/CAN_PLAY";t.WAITING="video-react/WAITING";t.CAN_PLAY_THROUGH="video-react/CAN_PLAY_THROUGH";t.PLAYING="video-react/PLAYING";var r="video-react/PLAY";t.PLAY=r;var o="video-react/PAUSE";t.PAUSE=o;var a="video-react/END";t.END=a;t.SEEKING="video-react/SEEKING";t.SEEKED="video-react/SEEKED";t.SEEKING_TIME="video-react/SEEKING_TIME";t.END_SEEKING="video-react/END_SEEKING";t.DURATION_CHANGE="video-react/DURATION_CHANGE";t.TIME_UPDATE="video-react/TIME_UPDATE";t.VOLUME_CHANGE="video-react/VOLUME_CHANGE";t.PROGRESS_CHANGE="video-react/PROGRESS_CHANGE";t.RATE_CHANGE="video-react/RATE_CHANGE";t.SUSPEND="video-react/SUSPEND";var i="video-react/ABORT";t.ABORT=i;t.EMPTIED="video-react/EMPTIED";t.STALLED="video-react/STALLED";t.LOADED_META_DATA="video-react/LOADED_META_DATA";t.LOADED_DATA="video-react/LOADED_DATA";t.RESIZE="video-react/RESIZE";var u="video-react/ERROR";t.ERROR=u;t.ACTIVATE_TEXT_TRACK="video-react/ACTIVATE_TEXT_TRACK"},function(e,t,n){"use strict";var r=n(225),o=n(213);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(214)),i=o(n(215)),u=o(n(212)),l=o(n(216)),s=o(n(217)),c=o(n(218)),d=o(n(2)),f=r(n(0)),p=o(n(211)),h=r(n(325));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var y={className:d.default.string,onMouseDown:d.default.func,onMouseMove:d.default.func,stepForward:d.default.func,stepBack:d.default.func,sliderActive:d.default.func,sliderInactive:d.default.func,onMouseUp:d.default.func,onFocus:d.default.func,onBlur:d.default.func,onClick:d.default.func,getPercent:d.default.func,vertical:d.default.bool,children:d.default.node,label:d.default.string,valuenow:d.default.string,valuetext:d.default.string,document:d.default.object},m=function(e){(0,l.default)(n,e);var t=v(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,r)).handleMouseDown=o.handleMouseDown.bind((0,u.default)(o)),o.handleMouseMove=o.handleMouseMove.bind((0,u.default)(o)),o.handleMouseUp=o.handleMouseUp.bind((0,u.default)(o)),o.handleFocus=o.handleFocus.bind((0,u.default)(o)),o.handleBlur=o.handleBlur.bind((0,u.default)(o)),o.handleClick=o.handleClick.bind((0,u.default)(o)),o.handleKeyPress=o.handleKeyPress.bind((0,u.default)(o)),o.stepForward=o.stepForward.bind((0,u.default)(o)),o.stepBack=o.stepBack.bind((0,u.default)(o)),o.calculateDistance=o.calculateDistance.bind((0,u.default)(o)),o.getProgress=o.getProgress.bind((0,u.default)(o)),o.renderChildren=o.renderChildren.bind((0,u.default)(o)),o.state={active:!1},o}return(0,i.default)(n,[{key:"componentWillUnmount",value:function(){var e=this.props.document;e.removeEventListener("mousemove",this.handleMouseMove,!0),e.removeEventListener("mouseup",this.handleMouseUp,!0),e.removeEventListener("touchmove",this.handleMouseMove,!0),e.removeEventListener("touchend",this.handleMouseUp,!0),e.removeEventListener("keydown",this.handleKeyPress,!0)}},{key:"getProgress",value:function(){var e=this.props.getPercent;if(!e)return 0;var t=e();return("number"!=typeof t||t<0||t===1/0)&&(t=0),t}},{key:"handleMouseDown",value:function(e){var t=this.props.onMouseDown,n=this.props.document;n.addEventListener("mousemove",this.handleMouseMove,!0),n.addEventListener("mouseup",this.handleMouseUp,!0),n.addEventListener("touchmove",this.handleMouseMove,!0),n.addEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!0}),this.props.sliderActive&&this.props.sliderActive(e),this.handleMouseMove(e),t&&t(e)}},{key:"handleMouseMove",value:function(e){var t=this.props.onMouseMove;t&&t(e)}},{key:"handleMouseUp",value:function(e){e.preventDefault();var t=this.props.onMouseUp,n=this.props.document;n.removeEventListener("mousemove",this.handleMouseMove,!0),n.removeEventListener("mouseup",this.handleMouseUp,!0),n.removeEventListener("touchmove",this.handleMouseMove,!0),n.removeEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!1}),this.props.sliderInactive&&this.props.sliderInactive(e),t&&t(e)}},{key:"handleFocus",value:function(e){this.props.document.addEventListener("keydown",this.handleKeyPress,!0),this.props.onFocus&&this.props.onFocus(e)}},{key:"handleBlur",value:function(e){this.props.document.removeEventListener("keydown",this.handleKeyPress,!0),this.props.onBlur&&this.props.onBlur(e)}},{key:"handleClick",value:function(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)}},{key:"handleKeyPress",value:function(e){37===e.which||40===e.which?(e.preventDefault(),e.stopPropagation(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),e.stopPropagation(),this.stepForward())}},{key:"stepForward",value:function(){this.props.stepForward&&this.props.stepForward()}},{key:"stepBack",value:function(){this.props.stepBack&&this.props.stepBack()}},{key:"calculateDistance",value:function(e){var t=this.slider,n=h.getPointerPosition(t,e);return this.props.vertical?n.y:n.x}},{key:"renderChildren",value:function(){var e=this.getProgress(),t="".concat((100*e).toFixed(2),"%");return f.default.Children.map(this.props.children,(function(n){return f.default.cloneElement(n,{progress:e,percentage:t})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.vertical,r=t.label,o=t.valuenow,a=t.valuetext;return f.default.createElement("div",{className:(0,p.default)(this.props.className,{"video-react-slider-vertical":n,"video-react-slider-horizontal":!n,"video-react-sliding":this.state.active},"video-react-slider"),ref:function(t){e.slider=t},tabIndex:"0",role:"slider",onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,"aria-label":r||"","aria-valuenow":o||"","aria-valuetext":a||"","aria-valuemin":0,"aria-valuemax":100},this.renderChildren())}}]),n}(f.Component);t.default=m,m.propTypes=y,m.displayName="Slider",m.defaultProps={document:window.document}},function(e,t,n){"use strict";var r=n(225),o=n(213);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(214)),i=o(n(215)),u=o(n(212)),l=o(n(216)),s=o(n(217)),c=o(n(218)),d=o(n(2)),f=r(n(0)),p=o(n(211)),h=o(n(342));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var y={player:d.default.object,actions:d.default.object,rates:d.default.array,className:d.default.string},m=function(e){(0,l.default)(n,e);var t=v(n);function n(e,r){var o;return(0,a.default)(this,n),(o=t.call(this,e,r)).handleSelectItem=o.handleSelectItem.bind((0,u.default)(o)),o}return(0,i.default)(n,[{key:"handleSelectItem",value:function(e){var t=this.props,n=t.rates,r=t.actions;e>=0&&e=t.length&&(n=0),this.activateMenuItem(n)}}},{key:"handleTab",value:function(e){this.state.active&&(e.preventDefault(),this.commitSelection(this.state.activateIndex))}},{key:"handleReturn",value:function(e){e.preventDefault(),this.state.active?this.commitSelection(this.state.activateIndex):this.setState({active:!0})}},{key:"handleEscape",value:function(){this.setState({active:!1,activateIndex:0})}},{key:"handleKeyPress",value:function(e){27===e.which?this.handleEscape(e):9===e.which?this.handleTab(e):13===e.which?this.handleReturn(e):38===e.which?this.handleUpArrow(e):40===e.which&&this.handleDownArrow(e)}},{key:"handleSelectItem",value:function(e){this.commitSelection(e)}},{key:"renderMenu",value:function(){var e=this;if(!this.state.active)return null;var t=this.props.items;return f.default.createElement(h.default,null,t.map((function(t,n){return f.default.createElement(v.default,{item:t,index:n,onSelectItem:e.handleSelectItem,activateIndex:e.state.activateIndex,key:"item-".concat(n++)})})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.inline,r=t.className;return f.default.createElement(y.default,{className:(0,p.default)(r,{"video-react-menu-button-inline":!!n,"video-react-menu-button-popup":!n,"video-react-menu-button-active":this.state.active},"video-react-control video-react-button video-react-menu-button"),role:"button",tabIndex:"0",ref:function(t){e.menuButton=t},onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},this.props.children,this.renderMenu())}}]),n}(f.Component);t.default=b,b.propTypes=g,b.displayName="MenuButton"},function(e,t,n){var r=n(465);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(303);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(349)("keys"),o=n(328);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(245),o=n(286),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(327)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(471)),o=i(n(481)),a="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===a(r.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":a(e)}},function(e,t,n){var r=n(302),o=n(475),a=n(350),i=n(348)("IE_PROTO"),u=function(){},l=function(){var e,t=n(407)("iframe"),r=a.length;for(t.style.display="none",n(476).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("